Always close files when using fopen()

Created: 2022-07-10
Tags: #permanent


FILE *fptr;
fptr = fopen("text.txt", "w");

fclose(fptr); <- Always close file at end of program

References